package wangwenjun.phase2.concurrencypattern.pipeline;

import lombok.Getter;
import lombok.extern.slf4j.Slf4j;

/**
 * @author ChangLiang
 * @date 2020/6/17
 */
@Slf4j
public class Product extends InstructionBook {

    @Getter
    private final int productId;

    public Product(int productId) {
        this.productId = productId;
    }

    @Override
    protected void firstValve() {
        log.info("execute product #{} first process", this.productId);
    }

    @Override
    protected void secondValve() {
        log.info("execute product #{} second process", this.productId);
    }
}
